
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>使用 Keil 调试 · WQ GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-intopic-toc/style.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-callouts/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-page-footer-ex/style/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-theme-comscore/test.css">
                
            
        

    

    
        
        <link rel="stylesheet" href="../styles/styles.css">
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="../lab3/introduction.html" />
    
    
    <link rel="prev" href="sec_5.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    Introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../lab0/introduction.html">
            
                <a href="../lab0/introduction.html">
            
                    
                    LAB0: 工欲善其事 必先利其器
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../lab0/FPGAintro.html">
            
                <a href="../lab0/FPGAintro.html">
            
                    
                    FPGA 简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../lab0/whyFPGA.html">
            
                <a href="../lab0/whyFPGA.html">
            
                    
                    为什么是 FPGA？
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../lab0/design_method.html">
            
                <a href="../lab0/design_method.html">
            
                    
                    设计方法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="../lab0/board_intro.html">
            
                <a href="../lab0/board_intro.html">
            
                    
                    平台介绍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="../lab0/intro_tools.html">
            
                <a href="../lab0/intro_tools.html">
            
                    
                    软硬件关系
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.6" data-path="../lab0/keil.html">
            
                <a href="../lab0/keil.html">
            
                    
                    Keil
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.7" data-path="../lab0/vivado.html">
            
                <a href="../lab0/vivado.html">
            
                    
                    Vivado
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.8" data-path="../lab0/modelsim.html">
            
                <a href="../lab0/modelsim.html">
            
                    
                    Modelsim
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../lab1/introduction.html">
            
                <a href="../lab1/introduction.html">
            
                    
                    LAB1: "施法"让 CPU 动起来
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../lab1/sec_1.html">
            
                <a href="../lab1/sec_1.html">
            
                    
                    ARM 汇编回顾
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../lab1/sec_2.html">
            
                <a href="../lab1/sec_2.html">
            
                    
                    搭建 Keil 环境
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../lab1/sec_3.html">
            
                <a href="../lab1/sec_3.html">
            
                    
                    运行吧, 第一个汇编程序
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="../lab1/sec_5.html">
            
                <a href="../lab1/sec_5.html">
            
                    
                    栈 - 函数调用的指挥官
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5" data-path="../lab1/sec_6.html">
            
                <a href="../lab1/sec_6.html">
            
                    
                    自己动手, 理解函数调用
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="introduction.html">
            
                <a href="introduction.html">
            
                    
                    LAB2: "点石成金" - 实现你的首个 SoC
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="sec_1.html">
            
                <a href="sec_1.html">
            
                    
                    硬件部分说明
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="sec_2.html">
            
                <a href="sec_2.html">
            
                    
                    搭建 Keil 工程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="sec_3.html">
            
                <a href="sec_3.html">
            
                    
                    Modelsim 仿真
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="sec_4.html">
            
                <a href="sec_4.html">
            
                    
                    下载比特流到 FPGA
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5" data-path="sec_5.html">
            
                <a href="sec_5.html">
            
                    
                    将硬件固化到开发板
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.4.6" data-path="sec_6.html">
            
                <a href="sec_6.html">
            
                    
                    使用 Keil 调试
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../lab3/introduction.html">
            
                <a href="../lab3/introduction.html">
            
                    
                    LAB3: "灯, 等灯, 等灯"-流水灯的几种点法
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../lab3/data_storage.html">
            
                <a href="../lab3/data_storage.html">
            
                    
                    数据存储器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../lab3/GPIO.html">
            
                <a href="../lab3/GPIO.html">
            
                    
                    GPIO外设实现流水灯
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="../lab3/WaterLight.html">
            
                <a href="../lab3/WaterLight.html">
            
                    
                    硬件流水灯
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../lab4/introduction.html">
            
                <a href="../lab4/introduction.html">
            
                    
                    LAB4: 如何召唤"沉睡的软件"
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../lab4/keyboards.html">
            
                <a href="../lab4/keyboards.html">
            
                    
                    矩阵键盘原理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../lab4/keyboards_waterlight.html">
            
                <a href="../lab4/keyboards_waterlight.html">
            
                    
                    使用矩阵键盘4个按键控制流水灯模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="../lab4/keyboards_led.html">
            
                <a href="../lab4/keyboards_led.html">
            
                    
                    使用矩阵键盘控制数码管显示
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../verilog/introduction.html">
            
                <a href="../verilog/introduction.html">
            
                    
                    附录
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../verilog/grammar.html">
            
                <a href="../verilog/grammar.html">
            
                    
                    Verilog基本语法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="../verilog/enable_signal.html">
            
                <a href="../verilog/enable_signal.html">
            
                    
                    使能信号
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3" data-path="../verilog/decoder.html">
            
                <a href="../verilog/decoder.html">
            
                    
                    总线译码器
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../faq/introduction.html">
            
                <a href="../faq/introduction.html">
            
                    
                    常见问题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="../add_notice.html">
            
                <a href="../add_notice.html">
            
                    
                    补充通知
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="../about/introduction.html">
            
                <a href="../about/introduction.html">
            
                    
                    About
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >使用 Keil 调试</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#x4F7F;&#x7528;-keil-&#x8C03;&#x8BD5;">&#x4F7F;&#x7528; Keil &#x8C03;&#x8BD5;</h1>
<p>&#x5728;&#x524D;&#x51E0;&#x4E2A;&#x5C0F;&#x8282;&#x4E2D;, &#x6211;&#x4EEC;&#x5DF2;&#x7ECF;&#x5C06;&#x6574;&#x4E2A;&#x8F6F;&#x786C;&#x4EF6;&#x7CFB;&#x7EDF;&#x90FD;&#x4E0B;&#x8F7D;&#x5230;&#x4E86; FPGA &#x4E2D;, &#x4F46;&#x662F;&#x7531;&#x4E8E;&#x8F6F;&#x4EF6;&#x5B9E;&#x73B0;&#x7684;&#x662F;&#x4E00;&#x4E2A;&#x5FAA;&#x73AF;&#x8BA1;&#x6570;&#x5668;, &#x6211;&#x4EEC;&#x65E0;&#x6CD5;&#x901A;&#x8FC7;&#x5916;&#x90E8;&#x7684;&#x663E;&#x793A;&#x5668;&#x4EF6;&#x6765;&#x89C2;&#x5BDF;&#x7A0B;&#x5E8F;&#x7684;&#x8FD0;&#x884C;&#x60C5;&#x51B5;, &#x6240;&#x4EE5;&#x6211;&#x4EEC;&#x53EA;&#x80FD;&#x591F;&#x901A;&#x8FC7;&#x8C03;&#x8BD5;&#x5668;&#x6DF1;&#x5165; Cortex-M0 &#x5185;&#x90E8;, &#x53BB;&#x89C2;&#x5BDF;&#x5176;&#x5BC4;&#x5B58;&#x5668;&#x503C;&#x7684;&#x53D8;&#x5316;&#x60C5;&#x51B5;.</p>
<p>&#x8FD9;&#x65F6;&#x5019;, &#x6211;&#x4EEC;&#x5C31;&#x9700;&#x8981;&#x7528;&#x5230; Keil &#x7684;&#x8C03;&#x8BD5;&#x529F;&#x80FD;&#x4E86;, &#x6253;&#x5F00; Keil &#x7684; Options &#x9009;&#x9879;&#x5361;, &#x8FDB;&#x5165; Debug &#x4E00;&#x680F;, &#x5DE6;&#x8FB9;&#x662F;&#x4EFF;&#x771F;&#x8BBE;&#x7F6E;, &#x53F3;&#x8FB9;&#x662F;&#x8C03;&#x8BD5;&#x8BBE;&#x7F6E;, &#x5728;&#x524D;&#x51E0;&#x4E2A;&#x5C0F;&#x8282;&#x4E2D;, &#x6211;&#x4EEC;&#x5DF2;&#x7ECF;&#x63D0;&#x524D;&#x5C06;&#x8BE5;&#x680F;&#x8BBE;&#x7F6E;&#x5230;&#x4E86;&#x8C03;&#x8BD5;&#x6A21;&#x5F0F;, &#x6240;&#x4EE5;&#x8FD9;&#x91CC;&#x6211;&#x4EEC;&#x76F4;&#x63A5;&#x8FDB;&#x884C;&#x8FDE;&#x63A5;&#x548C;&#x8C03;&#x8BD5;&#x5373;&#x53EF;.</p>
<h2 id="&#x8FDE;&#x63A5;">&#x8FDE;&#x63A5;</h2>
<p>&#x9996;&#x5148;&#x8FDB;&#x884C;&#x8C03;&#x8BD5;&#x5668;&#x7684;&#x8FDE;&#x63A5;. &#x5728;&#x5EFA;&#x7ACB;&#x8FDE;&#x63A5;&#x65F6;&#x5FC5;&#x987B;&#x4FDD;&#x8BC1;&#x4E24;&#x70B9;:</p>
<ol>
<li><p>&#x6BD4;&#x7279;&#x6D41;&#x5DF2;&#x7ECF;&#x4E0B;&#x8F7D;&#x5B8C;&#x6210;, &#x4E14; FPGA &#x6CA1;&#x6709;&#x88AB;&#x590D;&#x4F4D; (&#x6307; FPGA &#x82AF;&#x7247;&#x590D;&#x4F4D;, &#x5BF9;&#x5E94;&#x677F;&#x5361;&#x4E2D;&#x95F4;&#x7684;&#x590D;&#x4F4D;&#x6309;&#x952E;), SoC &#x5728;&#x4F7F;&#x80FD;&#x72B6;&#x6001; (&#x677F;&#x5361;&#x4E0A; SW0 &#x5411;&#x4E0A;&#x62E8;&#x5F00;), FPGA &#x4E0D;&#x65AD;&#x7535;. &#x8FD9;&#x6837;&#x624D;&#x53EF;&#x4EE5;&#x4FDD;&#x8BC1; Cortex-M0 &#x8F6F;&#x6838;&#x4E2D;&#x7684;&#x8C03;&#x8BD5;&#x63A5;&#x53E3;&#x80FD;&#x591F;&#x6B63;&#x5E38;&#x5DE5;&#x4F5C;.</p>
</li>
<li><p>&#x5728; 1 &#x7684;&#x57FA;&#x7840;&#x4E0A;, &#x6253;&#x5F00; PC &#x7684;&#x8BBE;&#x5907;&#x7BA1;&#x7406;&#x5668;&#x7684;&#x7AEF;&#x53E3;&#x4E00;&#x680F;, &#x786E;&#x4FDD; PC &#x4E0A;&#x68C0;&#x6D4B;&#x5230;&#x4E86;&#x8C03;&#x8BD5;&#x6570;&#x636E;&#x7EBF;&#x6240;&#x8FDE;&#x63A5;&#x7684;&#x7AEF;&#x53E3;, &#x4E14;&#x7AEF;&#x53E3;&#x51C6;&#x5907;&#x5C31;&#x7EEA;. &#x8FD9;&#x6837;&#x624D;&#x53EF;&#x4EE5;&#x4FDD;&#x8BC1; PC &#x4E0E;&#x8C03;&#x8BD5;&#x7AEF;&#x53E3;&#x80FD;&#x591F;&#x987A;&#x5229;&#x8FDE;&#x63A5;.</p>
</li>
</ol>
<center><img src="../img/lab2/35.png" alt="35" style="zoom:100%;"></center><center style="color:#0" ;="">&#x6B63;&#x5E38;&#x60C5;&#x51B5;&#x4E0B; PC &#x5E94;&#x5F53;&#x68C0;&#x6D4B;&#x5230;&#x4E24;&#x4E2A;&#x7AEF;&#x53E3;</center> 

<p>&#x70B9;&#x51FB;&#x8FDB;&#x5165; Debug &#x9875;&#x9762;&#x53F3;&#x4E0A;&#x89D2;&#x7684; settings &#x8FDB;&#x5165;&#x8C03;&#x8BD5;&#x5668;&#x7684;&#x8BBE;&#x7F6E;, &#x6CE8;&#x610F;&#x9009;&#x62E9;&#x8C03;&#x8BD5;&#x63A5;&#x53E3;&#x4E3A; SW, &#x8FD9;&#x65F6;&#x4F1A;&#x770B;&#x5230;&#x53F3;&#x4FA7;&#x51FA;&#x73B0;&#x4E86;&#x8C03;&#x8BD5;&#x5668;&#x7684;&#x8BBE;&#x5907; ID &#x548C;&#x540D;&#x79F0;, &#x8BF4;&#x660E;&#x5DF2;&#x7ECF;&#x6210;&#x529F;&#x5EFA;&#x7ACB;&#x8FDE;&#x63A5;, &#x70B9;&#x51FB; OK &#x5B8C;&#x6210;&#x8FDE;&#x63A5;. <font color="red">&#x82E5;&#x53F3;&#x4FA7;&#x663E;&#x793A;&#x672A;&#x627E;&#x5230;&#x8BBE;&#x5907;&#x6216;&#x8FDE;&#x63A5;&#x5931;&#x8D25;, &#x5219;&#x518D;&#x6B21;&#x786E;&#x8BA4;&#x4E0A;&#x8FF0;&#x4E24;&#x4E2A;&#x8FDE;&#x63A5;&#x6761;&#x4EF6;, &#x6216;&#x5C1D;&#x8BD5;&#x62D4;&#x4E0B;&#x6570;&#x636E;&#x7EBF;&#x518D;&#x91CD;&#x65B0;&#x63D2;&#x4E0A;.</font></p>
<center><img src="../img/lab2/33.png" alt="33" style="zoom:60%;"></center><center style="color:#0" ;="">&#x8C03;&#x8BD5;&#x5668;&#x8BBE;&#x7F6E;</center> 

<h2 id="&#x8C03;&#x8BD5;">&#x8C03;&#x8BD5;</h2>
<p>&#x8FDE;&#x63A5;&#x5B8C;&#x6210;&#x540E;, &#x70B9;&#x51FB; Keil &#x5DE5;&#x5177;&#x680F;&#x4E2D;&#x7684;<img src="../img/lab1/02-15.png" alt="02-15" style="zoom:100%;">&#x56FE;&#x6807;&#x8FDB;&#x5165;&#x8C03;&#x8BD5;, &#x8FD9;&#x65F6;&#x4F1A;&#x53D1;&#x73B0;&#x8C03;&#x8BD5;&#x754C;&#x9762;&#x548C; LAB1 &#x4E2D;&#x7528;&#x5230;&#x7684;&#x4EFF;&#x771F;&#x754C;&#x9762;&#x57FA;&#x672C;&#x662F;&#x4E00;&#x6837;&#x7684;, &#x53EA;&#x662F;&#x8C03;&#x8BD5;&#x754C;&#x9762;&#x4E2D;&#x8FD0;&#x884C;&#x7684;&#x662F;&#x5B9E;&#x9645;&#x677F;&#x5361;&#x4E2D;&#x7684;&#x7A0B;&#x5E8F;, &#x800C;&#x4E0D;&#x662F;&#x8F6F;&#x4EF6;&#x4EFF;&#x771F;&#x7684;&#x7A0B;&#x5E8F;.</p>
<p>&#x5355;&#x6B65;&#x8FD0;&#x884C;&#x7A0B;&#x5E8F;, &#x53EF;&#x4EE5;&#x89C2;&#x5BDF;&#x5230; r0 &#x7684;&#x503C;&#x5728; 0-4 &#x5FAA;&#x73AF;, &#x8BF4;&#x660E;&#x7A0B;&#x5E8F;&#x5728; FPGA &#x4E2D;&#x80FD;&#x591F;&#x6B63;&#x5E38;&#x8FD0;&#x884C;.</p>
<center><img src="../img/lab2/34.png" alt="34" style="zoom:100%;"></center><center style="color:#0" ;="">&#x8C03;&#x8BD5;&#x754C;&#x9762;</center> 

<h2 id="&#x5B9E;&#x73B0;&#x5728;&#x7EBF;&#x4E0B;&#x8F7D;&#x7A0B;&#x5E8F;">&#x5B9E;&#x73B0;&#x5728;&#x7EBF;&#x4E0B;&#x8F7D;&#x7A0B;&#x5E8F;</h2>
<p>&#x4F60;&#x6709;&#x6CA1;&#x6709;&#x60F3;&#x8FC7;, &#x65E2;&#x7136;&#x6211;&#x4EEC;&#x7684;&#x8F6F;&#x4EF6;&#x7A0B;&#x5E8F;&#x662F;&#x4EE5; .hex &#x6587;&#x4EF6;&#x7684;&#x5F62;&#x5F0F;&#x88AB;&#x5199;&#x5165;&#x5230;&#x6BD4;&#x7279;&#x6D41;&#x6587;&#x4EF6;&#x4E2D;, &#x7136;&#x540E;&#x88AB;&#x4E0B;&#x8F7D;&#x914D;&#x7F6E;&#x5230; FPGA &#x4E2D;&#x7684;, &#x90A3;&#x4E48;&#x8FD9;&#x662F;&#x4E0D;&#x662F;&#x610F;&#x5473;&#x7740;, &#x6211;&#x4EEC;&#x6BCF;&#x6B21;&#x4FEE;&#x6539;&#x8F6F;&#x4EF6;&#x4EE3;&#x7801;&#x540E;, &#x90FD;&#x8981;&#x91CD;&#x65B0;&#x7F16;&#x8BD1;, &#x7EFC;&#x5408;, &#x5B9E;&#x73B0;, &#x4E0B;&#x8F7D;&#x6BD4;&#x7279;&#x6D41;&#x5462;? &#x8FD9;&#x6837;&#x7684;&#x8BDD;&#x8C03;&#x8BD5;&#x6548;&#x7387;&#x662F;&#x4E0D;&#x662F;&#x5C31;&#x592A;&#x4F4E;&#x4E86;? &#x6309;&#x4E0A;&#x9762;&#x7684;&#x9053;&#x7406;&#x6765;&#x8BF4;&#x786E;&#x5B9E;&#x662F;&#x8FD9;&#x6837;&#x7684;, &#x4F46;&#x662F;&#x4E0D;&#x8981;&#x5FFD;&#x89C6;&#x4E86; Cortex-M0 &#x6838;&#x4E2D; DAP &#x7684;&#x8C03;&#x8BD5;&#x529F;&#x80FD;, <font color="blue">&#x5F53;&#x6211;&#x4EEC;&#x5728; Keil &#x8F6F;&#x4EF6;&#x4E2D;&#x8FDB;&#x884C;&#x8C03;&#x8BD5;&#x65F6;, &#x521A;&#x521A;&#x7F16;&#x8BD1;&#x5F97;&#x5230;&#x7684;&#x76EE;&#x6807;&#x6587;&#x4EF6;&#x4F1A;&#x901A;&#x8FC7; USB &#x6570;&#x636E;&#x7EBF;, &#x7ECF;&#x8FC7; FPGA &#x5F00;&#x53D1;&#x677F;&#x7684; DAP &#x63A5;&#x53E3;&#x4EE5;&#x53CA;&#x6211;&#x4EEC;&#x7EA6;&#x675F;&#x7684; SW &#x8C03;&#x8BD5;&#x5F15;&#x811A;&#x8FDB;&#x5165; CortexM0 &#x7684; DAP &#x4E2D;, &#x5B9E;&#x73B0;&#x7A0B;&#x5E8F;&#x7684;&#x5728;&#x7EBF;&#x4E0B;&#x8F7D;&#x4E0E;&#x8FD0;&#x884C;.</font> &#x8FD9;&#x6837;, &#x6211;&#x4EEC;&#x5C31;&#x53EF;&#x4EE5;&#x4E0D;&#x5FC5;&#x91CD;&#x65B0;&#x7EFC;&#x5408;, &#x4E5F;&#x80FD;&#x591F;&#x8C03;&#x8BD5;&#x6700;&#x65B0;&#x7684;&#x7A0B;&#x5E8F;&#x4E86;. &#x8FD9;&#x79CD; &quot;&#x786C;&#x4EF6;&#x56FA;&#x5B9A;&#x4E0D;&#x52A8;, &#x8F6F;&#x4EF6;&#x5728;&#x7EBF;&#x8C03;&#x8BD5;&quot; &#x7684;&#x601D;&#x60F3;&#x5BF9;&#x4E8E;&#x6211;&#x4EEC;&#x4E4B;&#x540E;&#x7684;&#x8C03;&#x8BD5;&#x6765;&#x8BF4;&#x662F;&#x975E;&#x5E38;&#x91CD;&#x8981;&#x7684;.</p>
<font color="red">&#x4F46;&#x662F;! &#x524D;&#x63D0;&#x662F;&#x5FC5;&#x987B;&#x8981;&#x505A;&#x5230;&#x4E24;&#x70B9;:</font>

<ul>
<li>&#x5728; Keil &#x7684; Options -&gt; Debug &#x9009;&#x9879;&#x5361;&#x4E2D;&#x4E00;&#x5B9A;&#x8981;&#x52FE;&#x9009;&#x4E0A; Load Application at Startup &#x9009;&#x9879;.</li>
</ul>
<center><img src="../img/lab2/38.png" alt="38" style="zoom:80%;"></center><center style="color:#0" ;="">&#x8981;&#x60F3;&#x5B9E;&#x73B0;&#x5728;&#x7EBF;&#x4E0B;&#x8F7D;&#x7A0B;&#x5E8F;, &#x4E00;&#x5B9A;&#x8981;&#x52FE;&#x4E0A;&#x8FD9;&#x4E2A;&#x9009;&#x9879;</center> 

<ul>
<li>&#x6BCF;&#x6B21;&#x4FEE;&#x6539;&#x8F6F;&#x4EF6;&#x540E;&#x52A1;&#x5FC5;&#x91CD;&#x65B0;&#x7F16;&#x8BD1;&#x5E76;&#x786E;&#x8BA4;&#x76EE;&#x6807;&#x6587;&#x4EF6;&#x987A;&#x5229;&#x751F;&#x6210; (&#x6211;&#x6709;&#x4E00;&#x4E2A;&#x670B;&#x53CB;&#x6539;&#x4E86;&#x8F6F;&#x4EF6;&#x4E0D;&#x91CD;&#x65B0;&#x7F16;&#x8BD1;&#x5C31;&#x53C8;&#x5F00;&#x59CB;&#x8C03;&#x8BD5;, &#x7ED3;&#x679C;&#x8DD1;&#x7684;&#x8FD8;&#x662F;&#x65E7;&#x7A0B;&#x5E8F;, &#x67E5;&#x9519;&#x67E5;&#x4E0D;&#x5230;&#x8FD8;&#x628A;&#x81EA;&#x5DF1;&#x5FC3;&#x6001;&#x641E;&#x5D29;&#x4E86;).</li>
</ul>
<footer class="page-footer-ex"> <span class="page-footer-ex-copyright"> By UESTC Intelligent Chip and System Design Lab. &#x91C7;&#x7528;<a href="https://creativecommons.org/licenses/by-nc-sa/3.0/cn/" target="_blank">&#x77E5;&#x8BC6;&#x5171;&#x4EAB; &#x7F72;&#x540D;-&#x975E;&#x5546;&#x4E1A;&#x6027;&#x4F7F;&#x7528;-&#x76F8;&#x540C;&#x65B9;&#x5F0F;&#x5171;&#x4EAB; 3.0 &#x4E2D;&#x56FD;&#x5927;&#x9646; &#x8BB8;&#x53EF;&#x534F;&#x8BAE;</a>&#x53D1;&#x5E03; </span> &#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0; <span class="page-footer-ex-footer-update"> &#x6B64;&#x9875;&#x9762;&#x4FEE;&#x8BA2;&#x4E8E; 2022-04-11 20:09:38 </span> </footer>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="sec_5.html" class="navigation navigation-prev " aria-label="Previous page: 将硬件固化到开发板">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="../lab3/introduction.html" class="navigation navigation-next " aria-label="Next page: LAB3: "灯, 等灯, 等灯"-流水灯的几种点法">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"使用 Keil 调试","level":"1.4.6","depth":2,"next":{"title":"LAB3: \"灯, 等灯, 等灯\"-流水灯的几种点法","level":"1.5","depth":1,"path":"lab3/introduction.md","ref":"lab3/introduction.md","articles":[{"title":"数据存储器","level":"1.5.1","depth":2,"path":"lab3/data_storage.md","ref":"lab3/data_storage.md","articles":[]},{"title":"GPIO外设实现流水灯","level":"1.5.2","depth":2,"path":"lab3/GPIO.md","ref":"lab3/GPIO.md","articles":[]},{"title":"硬件流水灯","level":"1.5.3","depth":2,"path":"lab3/WaterLight.md","ref":"lab3/WaterLight.md","articles":[]}]},"previous":{"title":"将硬件固化到开发板","level":"1.4.5","depth":2,"path":"lab2/sec_5.md","ref":"lab2/sec_5.md","articles":[]},"dir":"ltr"},"config":{"plugins":["intopic-toc","callouts","page-footer-ex","-livereload","theme-comscore","-sharing"],"styles":{"website":"styles/styles.css"},"pluginsConfig":{"callouts":{"important":{"alert":"danger","picto":"fa-bullhorn"},"danger":{"alert":"danger","picto":"fa-exclamation-circle"},"question":{"alert":"info","picto":"fa-question-circle"},"hint":{"alert":"success","picto":"fa-lightbulb-o"},"showTypeInHeader":false,"must":{"alert":"warning","picto":"fa-edit"},"flag":{"alert":"success","picto":"fa-flag"},"info":{"alert":"info","picto":"fa-info-circle"},"note":{"alert":"info","picto":"fa-edit"},"fread":{"alert":"info","picto":"fa-comment"}},"intopic-toc":{"isCollapsed":true,"isScrollspyActive":true,"label":"导航","maxDepth":6,"mode":"nested","selector":".markdown-section h1, .markdown-section h2, .markdown-section h3, .markdown-section h4","visible":true},"page-footer-ex":{"copyright":"By UESTC Intelligent Chip and System Design Lab. 采用[知识共享 署名-非商业性使用-相同方式共享 3.0 中国大陆 许可协议](https://creativecommons.org/licenses/by-nc-sa/3.0/cn/)发布","markdown":true,"update_format":"YYYY-MM-DD HH:mm:ss","update_label":"此页面修订于"},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-comscore":{},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"WQ GitBook","gitbook":"*"},"file":{"path":"lab2/sec_6.md","mtime":"2022-04-11T12:09:38.605Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2023-03-16T07:13:54.762Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-intopic-toc/anchor.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-intopic-toc/gumshoe.polyfills.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-intopic-toc/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-theme-comscore/test.js"></script>
        
    

    </body>
</html>

